package com.example.repair.util;

import com.example.repair.entity.Bean;
import com.zhy.http.okhttp.callback.Callback;

import java.io.IOException;

import okhttp3.Response;

/**
 * Created by admin
 * 2019/4/24
 */
public  abstract class HeaderImageCallback extends Callback<Bean> {

    @Override
    public Bean parseNetworkResponse(Response response, int id) throws IOException {

        return JsonUtil.jsonToBean(response.body().string(),Bean.class);
    }
}
